package com.haomin.searcher.web_search;

import lombok.Data;

/**
 * @author haomin
 * @date 2022/10/08 18:34
 **/
@Data
public class DocumentWithWeight {
    private int docId;
    private String title;
    private String url;
    private String content;
    public int weight;

    public Document toDocument() {
        Document document = new Document();
        document.setDocId(this.docId);
        document.setTitle(this.title);
        document.setUrl(this.url);
        document.setContent(this.content);

        return document;
    }
}